/**
 * 
 */
package com.glodon.paas.job.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Administrator
 *
 */
@Entity
@Table(name = "alarmConfig")
public class AlarmConfig {
private long id;
private boolean faliureTrigger;
private int serviceThreshold;
private int agentThreshold;
private int unProcessThreshold;
private int waitingTimeThreshold;
private int failureRateTheshold;
//Define health url for each module,combine with ";"
private String healthUrl;
private String sendTo;
public boolean isFaliureTrigger() {
	return faliureTrigger;
}
public void setFaliureTrigger(boolean isFaliureTrigger) {
	this.faliureTrigger = isFaliureTrigger;
}
public int getUnProcessThreshold() {
	return unProcessThreshold;
}
public void setUnProcessThreshold(int unProcessThreshold) {
	this.unProcessThreshold = unProcessThreshold;
}
public int getWaitingTimeThreshold() {
	return waitingTimeThreshold;
}
public void setWaitingTimeThreshold(int waitingTimeThreshold) {
	this.waitingTimeThreshold = waitingTimeThreshold;
}
public int getFailureRateTheshold() {
	return failureRateTheshold;
}
public void setFailureRateTheshold(int failureRateTheshold) {
	this.failureRateTheshold = failureRateTheshold;
}
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public long getId() {
	return id;
}
public void setId(long id) {
	this.id = id;
}
public int getAgentThreshold() {
	return agentThreshold;
}
public void setAgentThreshold(int agentThreshold) {
	this.agentThreshold = agentThreshold;
}
public String getSendTo() {
	return sendTo;
}
public void setSendTo(String sendTo) {
	this.sendTo = sendTo;
}
public int getServiceThreshold() {
	return serviceThreshold;
}
public void setServiceThreshold(int serviceThreshold) {
	this.serviceThreshold = serviceThreshold;
}
public String getHealthUrl() {
	return healthUrl;
}
public void setHealthUrl(String healthUrl) {
	this.healthUrl = healthUrl;
}

}
